import { DPPgyModel } from '../model/DPPgyModel';

class PgyService {
  async getList(page: number, pagesize: number, where?: any) {
    return DPPgyModel.findAndCountAll({
      limit: pagesize,
      offset: (page - 1) * pagesize,
      where: where,
    });
  }
}

export default new PgyService();
